package com.topideal.supplychain.hades.master.service.impl;

import com.topideal.supplychain.hades.master.mapper.ComponentMapper;
import com.topideal.supplychain.hades.master.model.Component;
import com.topideal.supplychain.hades.master.service.ComponentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 模块
 *
 * @author xuxiaoyan
 * @date 2018-09-19 15:15
 */
@Service
public class ComponentServiceImpl implements ComponentService {

    @Autowired
    private ComponentMapper componentMapper;

    /**
     * 根据模块id或模块名搜索模块
     *
     * @param query
     * @return
     */
    @Override
    public List<Component> selectByIdOrName(String query) {
        return componentMapper.selectByIdOrName(query);
    }
}
